import 'core-js/actual/array/iterator';
import 'core-js/actual/promise';
import 'core-js/actual/object/assign';
import 'core-js/actual/promise/finally';
import App from './App'
import uviewPlus from '@/uni_modules/uview-plus'
import lHeaderVue from './components/l-header/l-header.vue'
import './styles/index.scss'
import AppNavbar from './components/AppNavbar/AppNavbar.vue'
import tools from '@/utils/tools.js'
import store from './store'
import uploadModule from "@/utils/ossutil/uploadModule.js";

uni.$to = tools.jumpTo
uni.tools = tools
uni.uploadMedia = new uploadModule();
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	app.component('AppNavbar', AppNavbar)
	app.component('l-header', lHeaderVue);
	app.use(uviewPlus)
	app.use(store)
	return {
		app
	}
}